<li>
  <?php echo link_to2($message, 'view_msg', array('id' => $message->plate_message)); ?>
<?php if (!isset($hidePlateLink)): ?>
    (
    <?php echo link_to2($message->recipient_plate, 'list_by_plate', array('id' => $message->recipient_plate)); ?>
<?php if (isset($message->isTracked)): ?>
    <?php include_partial('tracker/status', array('plate' => $message->recipient_plate, 'tracking' => $message->isTracked)); ?>
<?php endif; ?>
    )
<?php endif; ?>
<?php if (!isset($hideProfileLink)): ?>
    <?php echo link_to2($message->Profile, 'list_by_driver', array('id' => $message->Profile->url_name)); ?>
<?php endif; ?>
<?php if (!isset($hideComments)): ?>
  <ul>
  <?php $commentCounter = 0; ?>
  <?php foreach ($message->Comments as $comment): ?>
    <?php ++$commentCounter; ?>
    <?php if (isset($limitComments) && $commentCounter > $limitComments): ?>
      <?php break; ?>
    <?php endif; ?>
    <?php include_partial('board/comment', array('comment' => $comment)); ?>
  <?php endforeach; ?>
  </ul>
<?php endif; ?>
</li>
